﻿using System;
using System.Configuration;
using System.Linq;
using Controllers;

namespace Web
{
    public partial class ExamEnd : System.Web.UI.Page
    {
        protected ExamType examType;
        protected void Page_Load(object sender, EventArgs e)
        {
            int typeId = int.Parse(Request.QueryString["typeId"]);
            ApolloOaDataContext ctx = new ApolloOaDataContext(ConfigurationManager.ConnectionStrings["SqlConnectionString"].ConnectionString);
            examType = ctx.ExamTypes.Single(r => r.Id == typeId);
        }
    }
}